package com.mervin.patterns.composite;

/***************************************
 * @Auther: mervin
 * @Date: 2020-04-21 23:47
 * @Description: 专业 叶子（Leaf）
 ***************************************/
public class Department extends OrganizationComponent {

    public Department(String name, String desc) {
        super(name, desc);
    }


    @Override
    protected void print() {
        System.out.println(" " + getName() + " ");
    }
}
